﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;

namespace ParsecClient.Classes
{
    public static class Logger
    {
        private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        static Logger()
        {

            log4net.Config.XmlConfigurator.Configure();
        }
        public static void WriteError(string message, Exception ex)
        {
            Log.Error(message, ex);
        }
        public static void WriteError(string message)
        {
            Log.Error(message);
        }
        public static void WriteInfo(string message)
        {
            Log.Info(message);
        }
    }
}
